Integrand size = 28, antiderivative size = 88 \[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\frac {c (f+g x)^{1+n}}{e g (1+n)}-\frac {\left (c d^2-a e\right ) g (f+g x)^{1+n} \operatorname {Hypergeometric2F1}\left (2,1+n,2+n,\frac {e (f+g x)}{e f-d g}\right )}{e (e f-d g)^2 (1+n)} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {961, 70} \[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\frac {c (f+g x)^{n+1}}{e g (n+1)}-\frac {g \left (c d^2-a e\right ) (f+g x)^{n+1} \operatorname {Hypergeometric2F1}\left (2,n+1,n+2,\frac {e (f+g x)}{e f-d g}\right )}{e (n+1) (e f-d g)^2} \]
[In]
[Out]
Rule 70
Rule 961
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {c (f+g x)^n}{e}+\frac {\left (-c d^2+a e\right ) (f+g x)^n}{e (d+e x)^2}\right ) \, dx \\ & = \frac {c (f+g x)^{1+n}}{e g (1+n)}+\frac {\left (-c d^2+a e\right ) \int \frac {(f+g x)^n}{(d+e x)^2} \, dx}{e} \\ & = \frac {c (f+g x)^{1+n}}{e g (1+n)}-\frac {\left (c d^2-a e\right ) g (f+g x)^{1+n} \, _2F_1\left (2,1+n;2+n;\frac {e (f+g x)}{e f-d g}\right )}{e (e f-d g)^2 (1+n)} \\ \end{align*}
Time = 0.14 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.94 \[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\frac {(f+g x)^{1+n} \left (c (e f-d g)^2+\left (-c d^2+a e\right ) g^2 \operatorname {Hypergeometric2F1}\left (2,1+n,2+n,\frac {e (f+g x)}{e f-d g}\right )\right )}{e g (e f-d g)^2 (1+n)} \]
[In]
[Out]
\[\int \frac {\left (g x +f \right )^{n} \left (c e \,x^{2}+2 c d x +a \right )}{\left (e x +d \right )^{2}}d x\]
[In]
[Out]
\[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\int { \frac {{\left (c e x^{2} + 2 \, c d x + a\right )} {\left (g x + f\right )}^{n}}{{\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\text {Exception raised: HeuristicGCDFailed} \]
[In]
[Out]
\[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\int { \frac {{\left (c e x^{2} + 2 \, c d x + a\right )} {\left (g x + f\right )}^{n}}{{\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\int { \frac {{\left (c e x^{2} + 2 \, c d x + a\right )} {\left (g x + f\right )}^{n}}{{\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(f+g x)^n \left (a+2 c d x+c e x^2\right )}{(d+e x)^2} \, dx=\int \frac {{\left (f+g\,x\right )}^n\,\left (c\,e\,x^2+2\,c\,d\,x+a\right )}{{\left (d+e\,x\right )}^2} \,d x \]
[In]
[Out]